package com.qf.xiaomi.dao;

import com.qf.xiaomi.pojo.OrderDetail;
import com.qf.xiaomi.pojo.OrderList;

import java.util.List;

/**
 * @Created by 马英超 on 2022/8/20 17:34
 * @author： 马英超
 * @version：v1.0
 * @description:
 */
public interface OrderDao {
    int insertOrder(int userId, String orderCode, int sum,int addressId);

    int clearCart(int userId);

    List<OrderList> queryOrderInfo(int userId);

    int addOrderDetail(String orderCode, int pid, int num, int price);
//根据订单编号查询订单详情
    OrderDetail queryOrderDetailInfo(String orderId, int userId);
}
